package com.gzx.plugin.tjzy.feign.gzxcase.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gzx.tjzy.feign.req.gzxcase.GzxCaseDetailReqDto;
import org.apache.ibatis.annotations.Insert;

import java.util.List;

/**
 * @author zjt
 * @description
 * @since 2025/2/13 10:00
 */
public interface GzxCaseDetailFeignMapper extends BaseMapper<GzxCaseDetailReqDto> {

    /**
     * 批量新增案件详情
     *
     * @param batchSql
     */
    @Insert("<script>" +
            "INSERT INTO gzx_case_detail (" +
            "debtor_card_id,batch_number,loan_no,contract_no,loan_key,funder,total_period,loan_date," +
            "loan_amount,overdue_amount,overdue_date,contract_rate,bank_account,bank_name," +
            "partner_business_id,all_detail,tenant_id,create_time) " +
            "VALUES ${batchSql}" +
            "</script>")
    void insertBatch(String batchSql);
}
